package com.timesheet.model;

import com.base.common.persistence.Model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Timesheet extends Model<Timesheet> {
    private String id;

    private String projectId;

    private String projectWbs;

    private Date startDate;

    private Date endDate;

    private Integer firstDay;

    private Integer secondDay;

    private Integer thirdDay;

    private Integer fourthDay;

    private Integer fifthDay;

    private Integer sixthDay;

    private Integer seventhDay;

    private String userId;
    
    private String auditState;

    private static final long serialVersionUID=1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectWbs() {
        return projectWbs;
    }

    public void setProjectWbs(String projectWbs) {
        this.projectWbs = projectWbs;
    }

    @DateTimeFormat(pattern="yyyy-MM-dd")
    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    @DateTimeFormat(pattern="yyyy-MM-dd")
    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getFirstDay() {
        return firstDay;
    }

    public void setFirstDay(Integer firstDay) {
        this.firstDay = firstDay;
    }

    public Integer getSecondDay() {
        return secondDay;
    }

    public void setSecondDay(Integer secondDay) {
        this.secondDay = secondDay;
    }

    public Integer getThirdDay() {
        return thirdDay;
    }

    public void setThirdDay(Integer thirdDay) {
        this.thirdDay = thirdDay;
    }

    public Integer getFourthDay() {
        return fourthDay;
    }

    public void setFourthDay(Integer fourthDay) {
        this.fourthDay = fourthDay;
    }

    public Integer getFifthDay() {
        return fifthDay;
    }

    public void setFifthDay(Integer fifthDay) {
        this.fifthDay = fifthDay;
    }

    public Integer getSixthDay() {
        return sixthDay;
    }

    public void setSixthDay(Integer sixthDay) {
        this.sixthDay = sixthDay;
    }

    public Integer getSeventhDay() {
        return seventhDay;
    }

    public void setSeventhDay(Integer seventhDay) {
        this.seventhDay = seventhDay;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAuditState() {
		return auditState;
	}

	public void setAuditState(String auditState) {
		this.auditState = auditState;
	}

	@Override
    public String getPrimaryKeyValue() {
        return this.id;
    }

    @Override
    public void setPrimaryKeyValue(String primaryKeyValue) {
        this.id = primaryKeyValue;
    }
}